﻿<%@ Page Language="C#" MasterPageFile="~/Template/List.master" AutoEventWireup="true" CodeFile="VehicleApplyCancel.aspx.cs" Inherits="Car_VehicleApplyCancel" Title="Untitled Page" %>

<%@ Register Src="~/Control/ListHeader.ascx" TagName="ListHeader" TagPrefix="wsc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>
        车辆申请取消</title>

    <script type="text/javascript" src="../Js/jquery-1.2.6.min.js"></script>

    <script type="text/javascript" src="../Js/jquery-1.2.6-vsdoc.js"></script>

    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>

    <script type="text/javascript">

     
        function refresh() {
            document.getElementById("<%=btnRefresh.ClientID %>").click();
        }
        function getID(id) {
            document.getElementById('<%=tbSelectedID.ClientID %>').value = id;
        }

        function searchClick() {
            //alert(window.event.keyCode);
            if (window.event.keyCode == 13) {
                document.getElementById("<%=btnSearch.ClientID %>").click(); return false;
            }
            return true;
        }
        
        function clearText(control, text) {
            if (control.value == text)
                control.innerText = "";
        }
        function insertText(control, text) {
            if (control.value == "")
                control.innerText = text;
        }

        function stopBubble(e, id) {
            var e = e ? e : window.event;
            if (window.event) { // IE   
                e.cancelBubble = true;
            } else { // FF   
                //e.preventDefault();    
                e.stopPropagation();
            }
            OpenDetail('ClassMemberList.aspx?ClassID=' + id + '&IsSelectClass=true&Nocache=' + Math.random());
        } 
        
    </script>

    <style>
        .Table td
        {
            padding: 5px;
        }
        .NoBorder td
        {
            padding: 0px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TitlePlaceHolder" runat="Server">
   车辆申请取消
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ListToolBarPlaceHolder" runat="Server">
    <div style="display: none">
        <asp:Button ID="btnRefresh" runat="server" OnClick="btnRefresh_Click" />
        <asp:TextBox ID="tbSelectedID" runat="server"></asp:TextBox>
    </div>
    <table cellspacing="2" cellpadding="0" border="0" width="100%">
        <tr>
            <td>
                <table cellspacing="0" cellpadding="0" border="0" class="TableSearch" width="100%">
                    <tr>
                        <td width="100%">
                            <asp:TextBox ID="tbSearch" runat="server" Style="width: 360px" CssClass="TextBox"></asp:TextBox>
                        </td>
                        <td width="10">
                            <asp:LinkButton ID="btnSearch" runat="server" OnClick="btnSearch_Click"><img alt="<%=SearchDefaultText %>" src="../Images/Icon/Icon-Search.png" align="absmiddle" style="cursor: pointer;" /></asp:LinkButton>
                        </td>
                    </tr>
                </table>
            </td>
            <td style="display: none;">
                <input type="button" class="InputBtn" style="width: 100px; display: none;" value="打印空白申请单"
                    onclick="window.open('RoomApplySheet.aspx','new','width=600,height=450,left=200,top=150,toolbar =no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');" />&nbsp;
            </td>
            <td style="width: 444px;">
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="AdvancedSearchPlaceHolder" runat="server">
    <table cellspacing="3" cellpadding="0" border="0" width="100%">
        <tr>
            <td width="100" style="color: #15428b">
                出发日期：
            </td>
            <td style="text-align: left">
                <asp:TextBox ID="txtStartDate" runat="server" Width="150px" CssClass="TextArea01"
                    onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'});"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="100" style="color: #15428b">
                当前状态：
            </td>
            <td style="text-align: left">
                <asp:DropDownList ID="ddlStatus" runat="server" Width="150px" CssClass="TextArea01">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td width="100" style="color: #15428b">
                事&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;由：
            </td>
            <td style="text-align: left">
                <asp:TextBox ID="txtPurpose" runat="server" Width="150px" CssClass="TextArea01"></asp:TextBox>
            </td>
        </tr>
      
        <tr>
            <td colspan="2" align="right">
                <asp:Button ID="btnAdvancedSearch" runat="server" CssClass="Button01" Text="查询" OnClientClick=""
                    OnClick="btnAdvancedSearch_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ListHeaderPlaceHolder" runat="Server">
    <table cellspacing="0" cellpadding="0" border="0" class="PageGridHeader" width="100%">
         <wsc:ListHeader ID="lhTitle" runat="server" Title="开始时间" Width="90" OrderColumn="StartDate"
            Align="center" />
        <wsc:ListHeader ID="lhPerson" runat="server" Title="结束时间" Width="90" OrderColumn="EndDate"
            Align="center" />
        <wsc:ListHeader ID="lhSupplyTime" runat="server" Title="天数" Width="50" OrderColumn="Remark2"
            Align="center" />
        <wsc:ListHeader ID="lhOperate" runat="server" Title="事由" Align="center" OrderColumn="Purpose" />
        <wsc:ListHeader ID="ListHeader2" runat="server" Title="目的地" Width="50" Align="center"
            OrderColumn="Destination" />
        <wsc:ListHeader ID="ListHeader1" runat="server" Title="申请时间" Width="90" Align="center"
            OrderColumn="ApplyDate" />
    </table>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ListContentPlaceHolder" runat="Server">
    <table id="Table1" width="100%" border="0" cellspacing="0" cellpadding="0" class="MainInfolist">
        <asp:Repeater ID="rptOrder" runat="server" OnItemCommand="rptOrder_ItemCommand">
            <ItemTemplate>
                  <tr id="TableRow_<%# Container.ItemIndex%>" style="cursor: hand" class="Normal" oldclass="Normal"
                    onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)" onclick="getID(this.id);ClickChangeClass(this);OpenDetail('VehicleApplyView.aspx?ID=<%# DataBinder.Eval(Container.DataItem, "ID")%>&UserType=Cancel&Manage=false&Nocache=' + Math.random());">
                    <%--<td>
                        <asp:CheckBox ID="cbSelect" runat="server" />
                    </td>--%>
                    <td width="90" align="center" style="text-align: center;" title="<%# DataBinder.Eval(Container.DataItem, "StartDate")%>">
                        <%# DataBinder.Eval(Container.DataItem, "StartDate", "{0:yyyy-MM-dd}")%>
                    </td>
                    <td width="90" align="center" style="text-align: center;" title="<%# DataBinder.Eval(Container.DataItem, "EndDate")%>">
                        <%# DataBinder.Eval(Container.DataItem, "EndDate", "{0:yyyy-MM-dd}")%>
                    </td>
                    <td width="50" align="center" style="text-align: center;">
                        <%# DataBinder.Eval(Container.DataItem, "Remark2")%>
                    </td>
                    <td align="left" title="<%# DataBinder.Eval(Container.DataItem, "Purpose")%>">
                        <%# WebCommon.Cut(DataBinder.Eval(Container.DataItem, "Purpose"), 10)%>
                    </td>
                    <td width="90" align="left" style="text-align: center;" title="<%# DataBinder.Eval(Container.DataItem, "Destination")%>">
                        <%# WebCommon.Cut(DataBinder.Eval(Container.DataItem, "Destination"), 5)%>
                    </td>
                    <td width="90" align="center" style="text-align: center;" title="<%# DataBinder.Eval(Container.DataItem, "ApplyDate")%>">
                        <%# DataBinder.Eval(Container.DataItem, "ApplyDate", "{0:yyyy-MM-dd}")%>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
</asp:Content>


